package districting;

import java.util.Comparator;

public class DivisionVotingPopulationComparator implements Comparator<Division> {

   @Override
   public int compare(Division div0, Division div1) {
      if (div0.getVotingPopulation() > div1.getVotingPopulation()) {
         return 1;
      } else if (div0.getVotingPopulation() < div1.getVotingPopulation()) {
         return -1;
      } else {
         return 0;
      }
   }

}
